﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace VideoCache.Server.MVCWeb.Areas.Admin.Models
{
    public class SiteModel
    {
        [Display(Name = "编号")]
        [Required(ErrorMessage = "编号不能为空。")]
        public int Id { get; set; }

        [Display(Name = "名称")]
        [Required(ErrorMessage = "站点名称不能为空。")]
        public string Name { get; set; }

        [Display(Name = "网址")]
        [Required(ErrorMessage = "网址不能为空。")]
        public string UrlHost { get; set; }

        [Display(Name = "显示名称")]
        [Required(ErrorMessage = "显示名称不能为空。")]
        public string DisplayName { get; set; }

        [Display(Name = "允许下载")]
        public bool AllowDownload { get; set; }

        [Display(Name = "下载器")]
        public string Downloader { get; set; }

        [Display(Name = "播放器")]
        public string PlayerId { get; set; }

        [Display(Name = "拖动标记")]
        public string PositionTag { get; set; }
    }
}